package com.itheima.service;

import com.itheima.pojo.Comment;
import com.itheima.pojo.PageBean;
import com.itheima.pojo.SubComment;

import java.util.List;

public interface CommentService {
    List<Comment> getCommentList(Integer articleId);

    void addComment(Comment comment);

    List<SubComment> getSubCommentList();

    void addSub(SubComment subComment);

    PageBean<Comment> manageComment(Integer pageNum, Integer pageSize, String content);

    void deleteComment(Integer id);

    PageBean<SubComment> manageSubComment(Integer pageNum, Integer pageSize, String content);

    void deleteSubComment(Integer id);
}
